package com.byfan.barter.service;

import com.byfan.barter.entity.Orders;

import java.util.List;

/**
 * @Author: FBY
 * @Description
 * @Version 1.0
 * @Date: 2021/5/14 16:43
 */
public interface OrdersService {

    Orders save(Orders orders);

    Orders getById(Integer id);

    List<Orders> getByOpenId(String openId);

    List<Orders> getByStatus(String openId,String status);

    List<Orders> getByFromIdAndStatus(String fromOpenId,String status);

    List<Orders> getByToIdAndStatus(String toOpenId,String status);

    List<Orders> getByFromId(String fromOpenId);

    List<Orders> getByToId(String toOpenId);

    List<Orders> getAll();



}
